-- GENERATED SPELL FOR [Bristleback Hunter] --


function spell0_3258(pUnit, Event) --@Poisoned Shot,n/a--
pUnit:FullCastSpellOnTarget(8806,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3258', 2000, 1)
end

function spell1_3258(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3258', 552, 1)
end

function Sorts_3258(pUnit, Event)
local choix_sorts_3258 = math.random(0, 1)
if choix_sorts_3258 == 0 then
pUnit:RegisterEvent('spell0_3258', 1, 1)
end
if choix_sorts_3258 == 1 then
pUnit:RegisterEvent('spell1_3258', 1, 1)
end
end

function mob3258_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3258', math.random(1500, 3000), 1)
end

function mob3258_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3258_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3258_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3258, 1, 'mob3258_Action')
RegisterUnitEvent(3258, 2, 'mob3258_Leave')
RegisterUnitEvent(3258, 3, 'mob3258_Kill')
RegisterUnitEvent(3258, 4, 'mob3258_Die')
